execute.js
execute.js
is configuration of JavaScript logic when condition is executed.
With input
variable, user can create their own logic for condition.
Expected input/output
- Execution input
- Contains request body data for condition.
- needs to follow the schema/variables configured in
data.json
.
- Execution output
- output will contain boolean result of condition.
- needs to follow the schema/output configured in
data.json
.
Example execute.js
const target = String(input.condition_target).toLowerCase()
const keyword = String(input.keyword).toLowerCase()
return target.includes(keyword)
Helpful?